//
//  PLUserGuideView.h
//  PlatformCommon
//
//  Created by KimmanYip on 2017/10/27.
//

/*
 * 用户引导view
 */

#import <UIKit/UIKit.h>

typedef void(^UserGuideDismissed)(void);

@interface PLUserGuideView : UIView


/**
 用户功能引导
 全屏显示，
 如果无效果图聚焦于forView
 如果有效果图，则在forView中心显示效果图

 @param controller      引导所在控制器
 @param forView         被引导的视图
 @param indicator       指示图片
 @param sketch          效果图
 @param indicatorAt     指示图片的位置
 @param completed       点击回调
 */
- (void)showGuideInViewController:(UIViewController *)controller
                          forView:(UIView *)forView
                      bolderColor:(UIColor *)bolderColor
                        indicator:(UIImage *)indicator
                     designSketch:(UIImageView *)sketch
                      indicatorAt:(CGPoint)indicatorAt
                        completed:(UserGuideDismissed)completed;

- (void)showGuideInViewController:(UIViewController *)controller
                           sketch:(UIImageView *)sketch
                         sketchAt:(CGPoint)sketchAt
                        indicator:(UIImage *)indicator
                      indicatorAt:(CGPoint)indicatorAt
                        completed:(UserGuideDismissed)completed;


@end
